package org.fanpeng.demo.design;

/**
 * className: Singleton_00
 * Description:
 * date: 2021/8/4 11:13
 *
 * @author fanpeng
 * @version 1.0
 */
public class Singleton_03 {
    // 饿汉模式（线程安全）
    private static Singleton_03 instance = new Singleton_03();

    private Singleton_03(){
    }

    public static Singleton_03 getInstance() {
        return instance;
    }
}
